package com.wx_zgwl_feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@RestController
public class HiController {
    @Autowired
    SchedualServiceHi schedualServiceHi;
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    public String sayHi(@RequestParam String name){
        return schedualServiceHi.sayHiFromClientOne(name);
    }
    @GetMapping(value="/getPreson")
    public void  getPreson( HttpServletRequest request){
        Preson preson=new Preson();
        preson.setAge("123");
        preson.setId("333333");
        preson.setName(request.getRequestURI().toString());
        schedualServiceHi.getPreson(preson);
    }





}
